import instance from "./request";
// export let http_table = () => {
//     return instance.get("/table")
// }
export let http_addtable = (obj) => {
    return instance.post("/table", obj)
}
export let http_deltable = (id) => {
    return instance.delete(`/table/${id}`)
}
export let http_edittable = (obj) => {
    return instance.patch(`/table/${obj.id}`, obj)
}
export let http_login = (obj) => {
    return instance.post("/login", obj)
}
export let http_nav = () => {
    return instance.get("/nav")
}
export let http_cart = () => {
    return instance.get("/cart")
}
export let http_list = () => {
    return instance.get("/list")
}
// export let http_searchtable = (searchParams) => {
//     return instance.post("/table/", searchParams);
// }
export let http_table = (title1, title2, title3) => {
    console.log(title1, title2, title3, "| title1, title2, title3");
    
    return instance.get("/table",
        {
            params: { "name_like": title1, "stage_like": title2, "Customer_like": title3 }
            // params: { "stage_like": title3 }
        })
}